import App from './App'
import store from './store'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

// main.js
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

//#ifdef H5 
import validCode from './components/validCode/validCode.vue'
Vue.component('validcode',validCode)
import Vconsole from './components/vconsole.min.js'
let localHost = window.location.host;

if (localHost.indexOf('localhost') !== -1 || localHost.indexOf('10') !== -1 || localHost.indexOf('uat') > -1) {
  var vConsole = new Vconsole();
}
//#endif
Vue.prototype.$store = store

App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif